using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using VOL.Entity.DomainModels;

namespace VOL.demo.IServices
{
    public partial interface IsuppliermodelService
    {
        /// <summary>
        /// 获取所有供应商下拉选项
        /// </summary>
        /// <returns>供应商列表</returns>
        Task<List<suppliermodel>> GetSupplierOptionsAsync();

        /// <summary>
        /// 根据供应商ID获取供应商信息
        /// </summary>
        /// <param name="supplierId">供应商ID</param>
        /// <returns>供应商信息</returns>
        Task<suppliermodel> GetSupplierByIdAsync(long supplierId);

        /// <summary>
        /// 根据供应商名称搜索供应商
        /// </summary>
        /// <param name="supplierName">供应商名称</param>
        /// <returns>供应商列表</returns>
        Task<List<suppliermodel>> SearchSuppliersByNameAsync(string supplierName);
    }
}